import 'package:flutter/material.dart';
class TestName extends StatelessWidget {
  const TestName({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: const Text('TestName')),
        body:  Column(children: [
          ElevatedButton(onPressed: (){
            const Locale('zh', 'CN') ;// 中文简体
            Locale myLocale = Localizations.localeOf(context);
            print('JtTag:testName:${myLocale.toString()}');
          }, child: Text('获取当前区域Locale'))
        ])
    );
  }
}


